Skip to content

Update venv and clean make targets#856

Merged
ezio-melotti merged 2 commits intopython:mainfrom
ezio-melotti:update-makefile
May 7, 2022
Merged

Update venv and clean make targets#856
ezio-melotti merged 2 commits intopython:mainfrom
ezio-melotti:update-makefile

Conversation

@ezio-melotti
Copy link
Member

This PR:

  • Updates the venv target
  • Adds a clean-venv target
  • Updates the clean target to call clean-venv too

These are copied from cpython/Doc/Makefile with minor changes.

See #854.

@ezio-melotti ezio-melotti added the type-feature Additions; New content or section needed label May 6, 2022
@ezio-melotti ezio-melotti requested a review from hugovk May 6, 2022 06:39
@ezio-melotti ezio-melotti self-assigned this May 6, 2022
@ezio-melotti ezio-melotti mentioned this pull request May 6, 2022
5 tasks
clean: clean-venv
-rm -rf $(BUILDDIR)/*

clean-venv:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include clean-venv in the help?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't included in CPython, and I think that's because:

  1. if you try to recreate the venv, it already tells you to use make clean-venv
  2. if you run make clean it also cleans the venv

Because of these reasons and for consistency with CPython, I decided to leave it out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, sounds good.

@hugovk
Copy link
Member

hugovk commented May 6, 2022

Good to have things working in a similar way here and for CPython docs 👍

@ezio-melotti ezio-melotti merged commit a8cc91e into python:main May 7, 2022
@ezio-melotti ezio-melotti deleted the update-makefile branch May 7, 2022 04:16
AA-Turner pushed a commit to AA-Turner/devguide that referenced this pull request Jun 17, 2022
* Update the `venv` command in the Makefile.

* Add the `clean-env` and updated the `clean` command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature Additions; New content or section needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants